//
//  XJ_PeisonInfoViewController.m
//  XunJieProject
//
//  Created by xue on 2018/6/8.
//  Copyright © 2018年 Soowin. All rights reserved.
//

#import "XJ_PeisonInfoViewController.h"

@interface XJ_PeisonInfoViewController ()
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *up_nameView;
@property (weak, nonatomic) IBOutlet ZDXXibLabel *nameLabel;
@property (weak, nonatomic) IBOutlet ZDXXibLabel *idNumberLabel;
@property (weak, nonatomic) IBOutlet ZDXXibLabel *mobileLabel;

@end

@implementation XJ_PeisonInfoViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    
    self.nameLabel.text =_userInfoModel.userName;
    if (_userInfoModel.idNumber.length>8) {
        self.idNumberLabel.text =[_userInfoModel.idNumber stringByReplacingCharactersInRange:NSMakeRange(4, 7) withString:@"****"];
    }else{
        self.idNumberLabel.text =_userInfoModel.idNumber;
    }
    if (_userInfoModel.mobile.length>5) {
        self.mobileLabel.text =[_userInfoModel.mobile stringByReplacingCharactersInRange:NSMakeRange(3, 4) withString:@"****"];
    }else{
        self.mobileLabel.text =_userInfoModel.mobile;
    }
    
}

-(void)creatMainUI{
    
    self.nav_titleLabel.text =@"基本资料";
    _up_nameView.constant =SafeAreaTopHeight;
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
